<?php 
$url = $_SERVER['PHP_SELF'];  //取地址
$arr = explode( '/' , $url );  //拆分地址
$filename= $arr[count($arr)-1]; //取文件名,区分大小写
if ($filename == 'index.php' or $filename == 'Index.php')
	$css_1='on';
elseif ($filename == 'Recruitment_add.php' or $filename == 'Recruitment_post.php' or $filename == 'Recruitment_detail.php' or $filename == 'Recruitment_change.php')
	$css_2='on';
elseif ($filename == 'Recruitment_list.php')
	$css_3='on';
?>

<div class="mainpage_tab_block <?php echo $css_1; ?>" onclick=<?php echo '"location.href=\'Index.php?companyId='.$companyId_Visited.'\';"';?>>企业信息</div>
<div class="mainpage_tab_block <?php echo $css_2; ?>" onclick="location.href='Recruitment_add.php';" <?php if($_SESSION["Company_Id"] == null) echo 'style="display:none;"'; ?>>
	发布招聘信息
</div>
<div class="mainpage_tab_block <?php echo $css_3; ?>" onclick=<?php echo '"location.href=\'Recruitment_list.php?companyId='.$companyId_Visited.'\';"';?>>招聘信息列表</div>
<div class="clear"></div>